/* 小黄人样式 */
.Boi {
    --happiness: 0.9;
    --derp: 1;
    --px: 0.5;
    --py: 0.5;
    width: 11rem;
    max-width: 100%;
    height: 11rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: radial-gradient(#f7e0b2, #eb5);
    border-radius: 100%;
    overflow: hidden;
    margin: 0;
    align-self: center;
    flex: 0 0 auto;
    border: solid 2px #ecb23e;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.Boi,
.Boi * {
    position: absolute;
}

.Boi::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(to bottom, #5a8, rgba(85, 170, 136, 0));
    opacity: calc(1 - var(--happiness));
}

.Boi-Blush {
    width: 20%;
    height: 10%;
    background-color: rgba(255, 100, 100, 0.3);
    border: 3px solid rgba(255, 100, 100, 0.3);
    top: calc(45% + var(--py) * 10%);
    border-radius: 100%;
    opacity: calc(var(--happiness) * var(--happiness) * 0.9 + 0.1);
}

.Boi-Blush_L {
    left: calc(7% + var(--px) * 2%);
}

.Boi-Blush_R {
    right: calc(9% - var(--px) * 2%);
}

.Boi-Eye {
    width: calc(26% - var(--happiness) * 2%);
    height: calc(26% - var(--happiness) * 2%);
    background-color: #f6f6f6;
    border-radius: 100%;
    top: calc(25% + var(--py) * 10%);
    overflow: hidden;
}

.Boi-Eye_L {
    left: calc(18% + var(--px) * 4%);
}

.Boi-Eye_L::after {
    transform: translate(calc((var(--px) + var(--derp) * 0.5) * 100%), calc((var(--py) + var(--derp) * 0.5) * 100%));
}

.Boi-Eye_R {
    right: calc(22% - var(--px) * 4%);
}

.Boi-Eye_R::after {
    transform: translate(calc((var(--px) + var(--derp) * -0.3) * 100%), calc((var(--py) + var(--derp) * -0.3) * 100%));
}

.Boi-Eye::after {
    content: '';
    display: block;
    background-color: #421;
    width: calc(55% - var(--happiness) * 10%);
    height: calc(55% - var(--happiness) * 10%);
    border-radius: 100%;
}

.Boi-Mouth {
    width: calc(51% - var(--happiness) * 2%);
    height: calc(26% - var(--happiness) * 2%);
    background-color: #a33;
    border-radius: calc((1 - var(--happiness)) * 10em) calc((1 - var(--happiness)) * 10em) calc(var(--happiness) * 16em) calc(var(--happiness) * 16em);
    top: calc(57.5% + var(--py) * 5%);
    left: calc(47.5% + var(--px) * 5%);
    transform: translateX(-50%);
    overflow: hidden;
    border: 3px solid #962d2d;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.Boi-Mouth::before {
    content: '';
    display: block;
    position: absolute;
    width: 20%;
    height: 20%;
    top: 0;
    left: 50%;
    background-color: white;
    border-radius: 0 0 0.5rem 0.5rem;
}

.Boi-Mouth::after {
    content: '';
    display: block;
    position: absolute;
    width: 60%;
    height: 50%;
    left: 10%;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20rem 20rem 0 0;
}

/* 互动按钮样式 */
.boi-buttons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 60%;
    margin-top: 1rem;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
}

.boi-btn {
    color: #fff;
    border-radius: 1rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    min-width: 8rem;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.boi-btn-tie {
    background-color: #6a4;
}

.boi-btn-tie:hover {
    background-color: #81c061;
    transform: scale(1.05);
}

.boi-btn-beat {
    background-color: #a43;
}

.boi-btn-beat:hover {
    background-color: #c85a48;
    transform: scale(1.05);
}

/* 小黄人动画 */
.boi-tie-animation {
    animation: tie 1s ease-in-out;
}

.boi-beat-animation {
    animation: beat 1s ease-in-out;
}

@keyframes tie {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.9) rotate(5deg);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.05) rotate(-5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes beat {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.9) rotate(10deg);
    }
    75% {
        transform: translate(-55%, -45%) scale(0.95) rotate(-15deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 表单显示动画 */
.login-form {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.boi-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} 